﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Niknak.Services.ServiceCore.TaskScheduler
{
    /// <summary>
    /// Defines that config classes for scheduled tasks must have a start time and an interval
    /// </summary>
    public interface ISimpleTaskConfig
    {
        /// <summary>
        /// The date on which the schedule should start. Format is yyyy-MM-dd. Optional.
        /// </summary>
        string StartDate { get; }
        /// <summary>
        /// The UTC time at which the schedule should start. Format is HH:mm:ss
        /// </summary>
        string StartTime { get; }

        /// <summary>
        /// Flags enum that lists the days on which task iterations are allowed to run (including Daily).
        /// </summary>
        InternalEnums.TaskScheduler.DaysOfWeek RunOnDays { get; }

        /// <summary>
        /// The length of time between each iteration of the task. Format is d.HH:mm:ss
        /// </summary>
        string Interval { get; }
    }
}
